package com.unbook.entity;

import lombok.Getter;

@Getter
public enum ResponseEnum {
    SUCCESS(200,"成功"),
    NOT_FOUND(404,"资源不存在"),
    SERVER_ERR(500,"服务器异常"),
    INSERT_ERR(510,"数据添加失败"),
    UPDATE_ERR(511,"更新失败"),
    DELETE_ERR(512,"删除失败"),
    PARAM_ERR(410,"参数错误"),
    AUTH_ERR(401,"权限校验失败，请先登录！"),
    WX_CODE_IS_NULL(400, "缺少code参数")
    ;
    final Integer code;
    final String desc;
    ResponseEnum(Integer code,String desc){
        this.code = code;
        this.desc = desc;
    }
}
